export const way1 = `
//按需
<template>
<ph-loading ref="loading"/>
</template>
<script>
import {PhLoading} from 'phoeon'
export default{

    setup(){
        const loading = ref<InstanceType<typeof PhLoading>>()

        onClick = ()=>{
            loading.show(opt?:{icon:string,alpha:boolean是否透明})
        }
    }
}
</script>
`;
export const way2 = `
//全局
import {PhGLoading} from 'phoeon'
App.use(PhGLoading)
<script>
    this.$phLoading.{show,hide}
</script>
`;
export const baseUsage = `
import {PhLoading} from 'phoeon'
interface Loading{
    show(opt?:{icon:string,alpha:boolean是否透明}):void
    hide():void
}
`;
